package com.vdg.fps;

import com.actionbarsherlock.app.SherlockActivity;
import com.vdg.fps.services.FPSService;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;

public class BaseActivity extends SherlockActivity implements ServiceConnection {

	@Override
	public void onServiceConnected(ComponentName name, IBinder service) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onServiceDisconnected(ComponentName name) {
		// TODO Auto-generated method stub

	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		Intent fpsServiceIntent = new Intent(this, FPSService.class);
		bindService(fpsServiceIntent, this, BIND_AUTO_CREATE);
	}

	@Override
	protected void onDestroy() {
		unbindService(this);
		super.onDestroy();
	}

}
